$OpenBSD: patch-chrome_browser_chrome_browser_main_posix_cc,v 1.2 2015/05/06 14:27:23 robert Exp $
--- chrome/browser/chrome_browser_main_posix.cc.orig.port	Wed Sep 10 22:14:04 2014
+++ chrome/browser/chrome_browser_main_posix.cc	Wed Sep 10 22:14:59 2014
@@ -270,6 +270,11 @@ void ChromeBrowserMainPartsPosix::PostMainMessageLoopS
     g_pipe_pid = getpid();
     g_shutdown_pipe_read_fd = pipefd[0];
     g_shutdown_pipe_write_fd = pipefd[1];
+#if defined(OS_OPENBSD)
+    // PTHREAD_STACK_MIN causes chromium to crash under FreeBSD,
+    // we request the default pthread stack size by specifying 0 here.
+    const size_t kShutdownDetectorThreadStackSize = 0;
+#else
 #if !defined(ADDRESS_SANITIZER) && !defined(KEEP_SHADOW_STACKS)
     const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2;
 #else
@@ -277,6 +282,7 @@ void ChromeBrowserMainPartsPosix::PostMainMessageLoopS
     // shadow stacks) bloat the stack frames, so we need to increase the stack
     // size to avoid hitting the guard page.
     const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4;
+#endif
 #endif
     // TODO(viettrungluu,willchan): crbug.com/29675 - This currently leaks, so
     // if you change this, you'll probably need to change the suppression.
